class Person:
    name=None
    age=None
    def __init__(self,name,age):
        self.name=name
        self.age=age
say_hello = Person('张三',19)
print(f'Hello, my name is{say_hello.name} and I am {say_hello.age} years old')

# class Person:
#     def __init__(self, name, age):
#         """初始化Person对象的name和age属性"""
#         self.name = name
#         self.age = age
    
#     def say_hello(self):
#         print(f"Hello, my name is {self.name} and I am {self.age} years old.")